const router = require('koa-router')()
const Response = require('../../config/response')

router.prefix('/api/user')

router.get('/', function (ctx, next) {
  ctx.body = 'this is a users response!'
})


router.get('/info', function (ctx, next) {
  ctx.body = Response.success({
    result: {
      id: 1,
      loginName: '15820745699',
      nickName: '枫の韵',
      authType: 1
    }
  })
})

module.exports = router
